#!/bin/bash

set -e
set -x

project_name=fastapi-admin
registry=registry.cn-shenzhen.aliyuncs.com/jiangwenyu
version=v0.0.1

path=$(cd $(dirname "$0") && pwd)
cd ${path}/..

sh scripts/check.sh

uv sync

DOCKER_BUILDKIT=1 docker build --no-cache -t ${registry}/${project_name}:${version} .
docker push ${registry}/${project_name}:${version}
